#!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Mon Jul  2 11:46:58 2018

@author: chenliheng
"""

# 读取文件
file_name = "test.txt"
 
f = open(file_name, "a")  # 文本文件写入

f.write("听说今天北京有雷雨！\n")
f.write("大家最好准备好雨具")

f.close()